Revision: 28118
          http://sourceforge.net/p/bibdesk/svn/28118
Author:   hofman
Date:     2022-12-15 11:10:59 +0000 (Thu, 15 Dec 2022)
Log Message:
-----------
revert last commit

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

Modified: trunk/bibdesk/BDSKZentralblattParser.m
===================================================================
--- trunk/bibdesk/BDSKZentralblattParser.m      2022-12-15 11:06:50 UTC (rev 
28117)
+++ trunk/bibdesk/BDSKZentralblattParser.m      2022-12-15 11:10:59 UTC (rev 
28118)
@@ -99,13 +99,13 @@
     // If not, use the default server instead.
     NSString * serverName = [[referrer host] lowercaseString];
     if ( [BDSKZentralblattParser canParseDocument:nil fromURL:referrer] ) {
-        if ( [[referrer path] rangeOfString:@"/zmath/ZMATH"].location != 
NSNotFound ) {
+        if ( [[referrer path] hasPrefix:@"/zmath/ZMATH"] ) {
             // some mirrors' paths begin with /ZMATH, add that
             serverName = [serverName stringByAppendingString:@"/ZMATH"];
         }
     }
     else {
-        serverName = @"www.zbmath.org";
+        serverName = @"www.zentralblatt-math.org";
     }
     
     // Loop through IDs in batches of ZMATHBATCHSIZE.
@@ -120,7 +120,7 @@
         // Query ZMath with a POST request
         NSString * URLString = [NSString 
stringWithFormat:@"https://%@/command/";, serverName];
         NSMutableURLRequest * request = [NSMutableURLRequest 
requestWithURL:[NSURL URLWithString:URLString]];
-        [request setHTTPMethod:@"post"];
+        [request setHTTPMethod:@"POST"];
         [request setValue:@"application/x-www-form-urlencoded" 
forHTTPHeaderField:@"Content-type"];
         NSString * queryString = [NSString 
stringWithFormat:@"type=bibtex&count=100&q=an:%@", [[processArray 
componentsJoinedByString:@"|an:"] stringByAddingPercentEscapesForQueryTerm]];
         [request setHTTPBody:[queryString 
dataUsingEncoding:NSUTF8StringEncoding]];

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