Changeset

2607:a7ef9b765891

mod_http_upload: Return 201 on successful PUT (as per XEP-0363 and RFC 2616) (Thanks Flow)
author Matthew Wild <mwild1@gmail.com>
date Fri, 10 Mar 2017 10:19:05 +0000
parents 2606:538c54d2dab3
children 2608:362ca94192ee
files mod_http_upload/mod_http_upload.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_http_upload/mod_http_upload.lua	Fri Mar 10 01:32:53 2017 +0100
+++ b/mod_http_upload/mod_http_upload.lua	Fri Mar 10 10:19:05 2017 +0000
@@ -148,7 +148,7 @@
 		return 500;
 	end
 	module:log("info", "File uploaded by %s to slot %s", uploader, random);
-	return 200;
+	return 201;
 end
 
 -- FIXME Duplicated from net.http.server