projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add new tag for the LUFA-120219-BETA release.
[pub/USBasp.git]
/
Projects
/
Webserver
/
Lib
/
HTTPServerApp.c
diff --git
a/Projects/Webserver/Lib/HTTPServerApp.c
b/Projects/Webserver/Lib/HTTPServerApp.c
index
37377d0
..
9ee514d
100644
(file)
--- a/
Projects/Webserver/Lib/HTTPServerApp.c
+++ b/
Projects/Webserver/Lib/HTTPServerApp.c
@@
-1,13
+1,13
@@
/*
LUFA Library
/*
LUFA Library
- Copyright (C) Dean Camera, 201
1
.
+ Copyright (C) Dean Camera, 201
2
.
dean [at] fourwalledcubicle [dot] com
www.lufa-lib.org
*/
/*
dean [at] fourwalledcubicle [dot] com
www.lufa-lib.org
*/
/*
- Copyright 201
1
Dean Camera (dean [at] fourwalledcubicle [dot] com)
+ Copyright 201
2
Dean Camera (dean [at] fourwalledcubicle [dot] com)
Permission to use, copy, modify, distribute, and sell this
software and its documentation for any purpose is hereby granted
Permission to use, copy, modify, distribute, and sell this
software and its documentation for any purpose is hereby granted
@@
-218,7
+218,7
@@
static void HTTPServerApp_SendResponseHeader(void)
{
/* Copy over the HTTP 404 response header and send it to the receiving client */
strcpy_P(AppData, HTTP404Header);
{
/* Copy over the HTTP 404 response header and send it to the receiving client */
strcpy_P(AppData, HTTP404Header);
- strc
py(&AppData[strlen(AppData)]
, AppState->HTTPServer.FileName);
+ strc
at(AppData
, AppState->HTTPServer.FileName);
uip_send(AppData, strlen(AppData));
AppState->HTTPServer.NextState = WEBSERVER_STATE_Closing;
uip_send(AppData, strlen(AppData));
AppState->HTTPServer.NextState = WEBSERVER_STATE_Closing;
@@
-236,7
+236,7
@@
static void HTTPServerApp_SendResponseHeader(void)
{
if (strcmp(&Extension[1], MIMETypes[i].Extension) == 0)
{
{
if (strcmp(&Extension[1], MIMETypes[i].Extension) == 0)
{
- strc
py(&AppData[strlen(AppData)]
, MIMETypes[i].MIMEType);
+ strc
at(AppData
, MIMETypes[i].MIMEType);
FoundMIMEType = true;
break;
}
FoundMIMEType = true;
break;
}
@@
-247,11
+247,11
@@
static void HTTPServerApp_SendResponseHeader(void)
if (!(FoundMIMEType))
{
/* MIME type not found - copy over the default MIME type */
if (!(FoundMIMEType))
{
/* MIME type not found - copy over the default MIME type */
- strc
py_P(&AppData[strlen(AppData)]
, DefaultMIMEType);
+ strc
at_P(AppData
, DefaultMIMEType);
}
/* Add the end-of-line terminator and end-of-headers terminator after the MIME type */
}
/* Add the end-of-line terminator and end-of-headers terminator after the MIME type */
- strc
py_P(&AppData[strlen(AppData)]
, PSTR("\r\n\r\n"));
+ strc
at_P(AppData
, PSTR("\r\n\r\n"));
/* Send the MIME header to the receiving client */
uip_send(AppData, strlen(AppData));
/* Send the MIME header to the receiving client */
uip_send(AppData, strlen(AppData));