Mercurial > prosody-modules
comparison mod_http_oauth2/mod_http_oauth2.lua @ 5961:7308ec4aaad1
mod_http_oauth2: Fix error due to mistake in 5f8a306c8306
Was passing the table instead of the host
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sat, 07 Sep 2024 15:20:23 +0200 |
| parents | 538f468f9a65 |
| children | 277ccafb4826 |
comparison
equal
deleted
inserted
replaced
| 5960:538f468f9a65 | 5961:7308ec4aaad1 |
|---|---|
| 40 end | 40 end |
| 41 if url_parts.host then | 41 if url_parts.host then |
| 42 if encodings.stringprep.nameprep(url_parts.host) ~= url_parts.host then | 42 if encodings.stringprep.nameprep(url_parts.host) ~= url_parts.host then |
| 43 return false; | 43 return false; |
| 44 end | 44 end |
| 45 if not encodings.idna.to_ascii(url_parts) then | 45 if not encodings.idna.to_ascii(url_parts.host) then |
| 46 return false; | 46 return false; |
| 47 end | 47 end |
| 48 end | 48 end |
| 49 return url_parts; | 49 return url_parts; |
| 50 end | 50 end |
