Fork with custom headers and basic auth.
Fork of HTTPClient by
Revision 20:cb2e5cd4e29b, committed 2014-01-27
- Comitter:
- vwochnik
- Date:
- Mon Jan 27 08:44:42 2014 +0000
- Parent:
- 19:bcbf0af9fac3
- Child:
- 21:66f1c10a5e9a
- Commit message:
- fix
Changed in this revision
HTTPClient.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/HTTPClient.cpp Fri Jan 24 13:51:36 2014 +0000 +++ b/HTTPClient.cpp Mon Jan 27 08:44:42 2014 +0000 @@ -175,9 +175,9 @@ } // send authorization - if ((!m_basicAuthUser) && (!m_basicAuthPass)) { + if ((!m_basicAuthUser) && (!m_basicAuthPassword)) { strcpy(buf, "Authorization: "); - createauth(m_basicAuthUser, m_basicAuthPass, buf+strlen(buf), sizeof(buf)-strlen(buf)); + createauth(m_basicAuthUser, m_basicAuthPassword, buf+strlen(buf), sizeof(buf)-strlen(buf)); strcat(buf, "\r\n"); ret = send(buf);