Skip to content

Commit

Permalink
Added missing implementation for setURL function
Browse files Browse the repository at this point in the history
  • Loading branch information
wlmp13 committed Jul 5, 2009
1 parent 81a748e commit 841647c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions request.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ void GETrequest::setAuth(char* auth) {
if (!this->active) this->auth = auth;
}

void GETrequest::setURL(char* URL) {
if (!this->active) this->URL = URL;
}

void GETrequest::submit() {
// Ignore submit request if already active
if (!this->active) WiServer.submitRequest(this);
Expand All @@ -75,6 +79,8 @@ boolean GETrequest::isActive() {
}




POSTrequest::POSTrequest(uint8* ipAddr, int port, char* hostName, char* URL, bodyFunction body) :
// Create a request with the IP, port, host name and URL
GETrequest (ipAddr, port, hostName, URL) {
Expand Down

0 comments on commit 841647c

Please sign in to comment.