more cleanup

This commit is contained in:
Seven Du 2013-07-31 16:27:56 +08:00
parent 89eb8c4624
commit cbe7612ed5
1 changed files with 0 additions and 6 deletions

View File

@ -219,13 +219,10 @@ static void sha1_digest(unsigned char *digest, char *in)
int ws_handshake_kvp(wsh_t *wsh, char *key, char *version, char *proto)
{
char uri[256] = "";
char input[256] = "";
unsigned char output[SHA1_HASH_SIZE] = "";
char b64[256] = "";
char respond[512] = "";
issize_t bytes;
char *p, *e = 0;
if (!wsh->tsession) {
return -3;
@ -258,9 +255,6 @@ int ws_handshake_kvp(wsh_t *wsh, char *key, char *version, char *proto)
snprintf(respond, sizeof(respond), "HTTP/1.1 400 Bad Request\r\n"
"Sec-WebSocket-Version: 13\r\n\r\n");
//printf("ERR:\n%s\n", respond);
ws_raw_write(wsh, respond, strlen(respond));
ws_close(wsh, WS_NONE);