Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
casperjs
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
5e488845
...
5e488845fa9cd9f8368a25eacd3c0b8f361bd69c
authored
2012-12-19 19:38:01 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
proper headers sent by ClientUtils.sendAJAX()
1 parent
eb98da17
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
modules/clientutils.js
modules/clientutils.js
View file @
5e48884
...
...
@@ -644,7 +644,7 @@
}
else
if
(
typeof
data
===
"string"
)
{
dataString
=
data
;
}
xhr
.
setRequestHeader
(
"Content-
t
ype"
,
"application/x-www-form-urlencoded"
);
xhr
.
setRequestHeader
(
"Content-
T
ype"
,
"application/x-www-form-urlencoded"
);
}
xhr
.
send
(
method
===
"POST"
?
dataString
:
null
);
return
xhr
.
responseText
;
...
...
Please
register
or
sign in
to post a comment