[xiph-cvs] cvs commit: libshout/src shout.c
Brendan
brendan at xiph.org
Wed Jan 15 15:48:10 PST 2003
brendan 03/01/15 18:48:10
Modified: src shout.c
Log:
Automatically authenticate (saves round trip)
Revision Changes Path
1.17 +7 -0 libshout/src/shout.c
Index: shout.c
===================================================================
RCS file: /usr/local/cvsroot/libshout/src/shout.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- shout.c 15 Jan 2003 08:20:15 -0000 1.16
+++ shout.c 15 Jan 2003 23:48:10 -0000 1.17
@@ -786,7 +786,12 @@
return self->error = SHOUTERR_NOCONNECT;
}
+#if 0
if(send_http_request(self, NULL, NULL) != 0) {
+#else
+ /* assume we'll have to authenticate, saves round trips on basic */
+ if(send_http_request(self, self->user, self->password) != 0) {
+#endif
sock_close(self->socket);
return self->error = SHOUTERR_SOCKET;
}
@@ -806,6 +811,7 @@
httpp_destroy(parser);
return SHOUTERR_SUCCESS;
}
+#if 0
else if(code == 401) {
/* Don't really use this right now other than to check that it's
* present.
@@ -841,6 +847,7 @@
}
}
}
+#endif
}
httpp_destroy(parser);
<p><p>--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the commits
mailing list