Added url variables, removed exec pages
This commit is contained in:
@@ -5,7 +5,10 @@
|
||||
#include <swebs/swebs.h>
|
||||
|
||||
int getResponse(Request *request, Response *response) {
|
||||
char *str = request->path;
|
||||
printf("%d\n", request->path.fieldCount);
|
||||
for (int i = 0; i < request->path.fieldCount; i++)
|
||||
printf("%s: %s\n", request->path.fields[i].var.data, request->path.fields[i].value.data);
|
||||
char *str = request->path.path.data;
|
||||
response->type = BUFFER;
|
||||
response->response.buffer.data = malloc(100);
|
||||
strcpy(response->response.buffer.data, str);
|
||||
|
||||
Reference in New Issue
Block a user