fix wrong url post
This commit is contained in:
		
							parent
							
								
									eef823a684
								
							
						
					
					
						commit
						0729cd9ee5
					
				
					 2 changed files with 10 additions and 1 deletions
				
			
		|  | @ -58,6 +58,9 @@ local function getAllFiles() | |||
|     local indexesUrl = url .. "/indexes/" .. programToInstall | ||||
| 
 | ||||
|     local result = http.get(indexesUrl) | ||||
|     if result == nil then | ||||
|       print("error! getting indexes for " .. programToInstall) | ||||
|     end | ||||
|     local resultText = result.readAll() | ||||
|     local resultTable = split(resultText, "\n") | ||||
| 
 | ||||
|  |  | |||
|  | @ -61,11 +61,17 @@ local function getAllFiles() | |||
|         indexesFile.close() | ||||
|     end | ||||
| 
 | ||||
|     local result = http.post(indexesUrl, currentFiles) | ||||
|     local result = http.post(updateUrl, currentFiles) | ||||
|     if result == nil then | ||||
|       print("error! getting updates for " .. programToInstall) | ||||
|     end | ||||
|     local resultText = result.readAll() | ||||
|     local resultTable = split(resultText, "\n") | ||||
| 
 | ||||
|     local result2 = http.get(indexesUrl) | ||||
|     if result2 == nil then | ||||
|       print("error! getting indexes for " .. programToInstall) | ||||
|     end | ||||
|     local resultText2 = result2.readAll() | ||||
|     local resultTable2 = split(resultText2, "\n") | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue