mirror of
https://gitlab.com/TheOneWithTheBraid/dart_pkpass.git
synced 2025-07-07 14:18:54 +00:00
PassWebService use punycode converted webServiceURL + test
This commit is contained in:
parent
7578dc7352
commit
f283e4251a
3 changed files with 29 additions and 1 deletions
|
@ -1,3 +1,5 @@
|
|||
import 'package:punycode_converter/punycode_converter.dart';
|
||||
|
||||
/// Metadata required for Pass Web Service
|
||||
///
|
||||
/// https://developer.apple.com/library/archive/documentation/PassKit/Reference/PassKit_WebService/WebService.html#//apple_ref/doc/uid/TP40011988
|
||||
|
@ -29,7 +31,8 @@ class PassWebService {
|
|||
if (uri == null || uri.scheme != 'https') return null;
|
||||
return PassWebService(
|
||||
authenticationToken: authenticationToken,
|
||||
webServiceURL: uri,
|
||||
// URLs due to IDNA2008
|
||||
webServiceURL: uri.punyEncoded,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue