Ignore:
Timestamp:
2005-02-22T16:03:35+13:00 (19 years ago)
Author:
mdewsnip
Message:

Ooooops... the "I'm Feeling Lucky" functionality didn't work at all for the Local Library.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/w32server/cgiwrapper.cpp

    r9117 r9138  
    816816    }
    817817    delete response_data_c;
    818   } else {
     818  }
     819  else if (response == undecided_location) {
     820    // We know this is a relocation request but at the moment we don't know exactly where to
     821    // Just output the start of the header and wait until later to output the target location
     822    // Used for the "I'm feeling lucky" functionality
     823    cout << "HTTP/1.0 302 Relocation\r\n";
     824    cout << "Server: GSDL\r\n";
     825    cout << "Content-type: text/html \r\n";
     826  }
     827  else {
    819828    // unknown response
    820829    cerr << "Error: get_cgihead_info returned an unknown response type.\n";
     
    824833  textstream.tsbreset();
    825834  textstream.setrequestinfo (RInfo);
    826  
    827835  if (!recpt.produce_content (args, cout, cerr)) {
    828836    page_errorcgipage(gsdl_gsdlhome);
Note: See TracChangeset for help on using the changeset viewer.