put quotes around header name
This commit is contained in:
parent
3d467cfab2
commit
d760149ce0
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ generateJS req = "\n" <>
|
|||
else "\n , headers: { " ++ headersStr hs ++ " } }\n"
|
||||
|
||||
where headersStr hs = intercalate ", " $ map headerStr hs
|
||||
headerStr hname = hname ++ ": header" ++ hname
|
||||
headerStr hname = "\"" ++ hname ++ "\": header" ++ hname
|
||||
|
||||
fname = req ^. funcName
|
||||
method = req ^. reqMethod
|
||||
|
|
Loading…
Reference in a new issue