lukechilds on Nostr: Hmmn yeah I get that but aren’t you doing the opposite here? HTTP spec already ...
Hmmn yeah I get that but aren’t you doing the opposite here?
HTTP spec already states how 301/307 should be handled. NIP-05 rules are saying do a lookup how HTTP says but don’t follow the redirect how HTTP says.
So if an app is requesting some HTTP resource and a NIP-05 JSON file it has to follow two different sets of rules to resolve both those resources instead of just following the HTTP spec.
Published at
2023-02-28 19:03:28Event JSON
{
"id": "96683538bab91d88b0ba1a978e90ca2bf7173eb5539bca054ff089e430755e4e",
"pubkey": "bae77874946ec111f94be59aef282de092dc4baf213f8ecb8c9e15cb7ed7304e",
"created_at": 1677611008,
"kind": 1,
"tags": [
[
"e",
"50a2e3c88c3eaf99c0ae1fa19dfbb8c60d76912f9ed2f86ed0903dee24428b72"
],
[
"e",
"ca91dd2bcde774ec5a60be22500ccea8a24b546db8ef470e73972d4a466e0024"
],
[
"p",
"7fa56f5d6962ab1e3cd424e758c3002b8665f7b0d8dcee9fe9e288d7751ac194",
"wss://relay.damus.io"
],
[
"p",
"bfc058c9abb250a2f4f0f240210ae750221b614f19b9872ea8cdf59a69d68914",
"wss://relay.damus.io"
],
[
"p",
"3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d"
]
],
"content": "Hmmn yeah I get that but aren’t you doing the opposite here?\n\nHTTP spec already states how 301/307 should be handled. NIP-05 rules are saying do a lookup how HTTP says but don’t follow the redirect how HTTP says.\n\nSo if an app is requesting some HTTP resource and a NIP-05 JSON file it has to follow two different sets of rules to resolve both those resources instead of just following the HTTP spec.",
"sig": "7e28efba876bc8fe61cf6a031e65a89f627832ee4f4ff16afeb3cd60ed8749a972b237e27c8d57f58c152c04bfad0b86aed31540c721ccba493559d8d39a403a"
}