send content type and length??
This commit is contained in:
		
							parent
							
								
									233b86bf4f
								
							
						
					
					
						commit
						14a44082ef
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		|  | @ -69,7 +69,10 @@ local function getAllFiles(program) | ||||||
| 
 | 
 | ||||||
|     print("#DEBUG currentFiles " .. currentFiles) |     print("#DEBUG currentFiles " .. currentFiles) | ||||||
| 
 | 
 | ||||||
|     local updateResult = http.post(updateUrl, currentFiles) |     local updateResult = http.post(updateUrl, currentFiles, { | ||||||
|  |       ["Content-Type"] = "text/plain", | ||||||
|  |       ["Content-Length"] = #currentFiles | ||||||
|  |     }) | ||||||
|     if updateResult == nil then |     if updateResult == nil then | ||||||
|         print("error! getting updates for " .. program) |         print("error! getting updates for " .. program) | ||||||
|         error() |         error() | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue