mirror of
				https://github.com/mickael-kerjean/filestash.git
				synced 2025-10-31 10:07:15 +08:00 
			
		
		
		
	fix (ios): auth issue on ios
when using deep links on ios, we would get this error: "safari can't open the page because the address is invalid"
This commit is contained in:
		| @ -478,7 +478,7 @@ func SessionAuthMiddleware(ctx *App, res http.ResponseWriter, req *http.Request) | |||||||
| 	if Config.Get("features.protection.iframe").String() != "" { | 	if Config.Get("features.protection.iframe").String() != "" { | ||||||
| 		redirectURI += "#bearer=" + obfuscate | 		redirectURI += "#bearer=" + obfuscate | ||||||
| 	} | 	} | ||||||
| 	http.Redirect(res, req, redirectURI, http.StatusTemporaryRedirect) | 	http.Redirect(res, req, redirectURI, http.StatusSeeOther) | ||||||
| } | } | ||||||
|  |  | ||||||
| func applyCookieRules(cookie *http.Cookie, req *http.Request) *http.Cookie { | func applyCookieRules(cookie *http.Cookie, req *http.Request) *http.Cookie { | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 MickaelK
					MickaelK