Revision: 29522
          http://sourceforge.net/p/bibdesk/svn/29522
Author:   hofman
Date:     2025-09-02 21:39:57 +0000 (Tue, 02 Sep 2025)
Log Message:
-----------
use status code 301 redirect

Modified Paths:
--------------
    trunk/bibdesk/BDSKBibDeskProtocol.m

Modified: trunk/bibdesk/BDSKBibDeskProtocol.m
===================================================================
--- trunk/bibdesk/BDSKBibDeskProtocol.m 2025-09-02 15:43:28 UTC (rev 29521)
+++ trunk/bibdesk/BDSKBibDeskProtocol.m 2025-09-02 21:39:57 UTC (rev 29522)
@@ -124,7 +124,7 @@
     } else if ([HELP_SPECIFIER isCaseInsensitiveEqual:[[resourceSpecifier 
pathComponents] firstObject]]) {
         // when there's no "//" the URL we get has percent escapes including 
in particular the # character, which would we don't want
         NSString *URLString = [NSString stringWithFormat:@"%@://%@", 
BDSKBibDeskScheme, [resourceSpecifier stringByRemovingPercentEncoding]];
-        NSHTTPURLResponse *response = [[NSHTTPURLResponse alloc] 
initWithURL:theURL statusCode:303 HTTPVersion:@"HTTP/1.1" 
headerFields:@{@"Location": URLString}];
+        NSHTTPURLResponse *response = [[NSHTTPURLResponse alloc] 
initWithURL:theURL statusCode:301 HTTPVersion:@"HTTP/1.0" 
headerFields:@{@"Location": URLString}];
         NSMutableURLRequest *redirectRequest = [request mutableCopy];
         [redirectRequest setURL:[NSURL 
URLWithStringByNormalizingPercentEscapes:URLString]];
         [client URLProtocol:self wasRedirectedToRequest:redirectRequest 
redirectResponse:response];

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to