Your ROOT_URL in app.ini is https://source.parasitstudio.de:63000/ but you are visiting https://source.parasitstudio.de/wirtz/AutoConnect/commit/227d2a1dc8e406dde5aa2f49f002ccd520708d18?style=unified&whitespace=show-all
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
5 additions and
1 deletions
src/AutoConnectAux.cpp
src/AutoConnectAux.h
@ -452,6 +452,8 @@ PageElement* AutoConnectAux::_setupPage(const String& uri) {
elm - > addToken ( String ( FPSTR ( " AUX_URI " ) ) , std : : bind ( & AutoConnectAux : : _indicateUri , this , std : : placeholders : : _1 ) ) ;
elm - > addToken ( String ( FPSTR ( " ENC_TYPE " ) ) , std : : bind ( & AutoConnectAux : : _indicateEncType , this , std : : placeholders : : _1 ) ) ;
elm - > addToken ( String ( FPSTR ( " AUX_ELEMENT " ) ) , std : : bind ( & AutoConnectAux : : _insertElement , this , std : : placeholders : : _1 ) ) ;
// Restore transfer mode by each page
mother - > _responsePage - > chunked ( chunk ) ;
}
}
return elm ;
@ -48,7 +48,7 @@ typedef enum {
class AutoConnectAux : public PageBuilder {
public :
explicit AutoConnectAux ( const String & uri = String ( " " ) , const String & title = String ( " " ) , const bool menu = true , const AutoConnectElementVT addons = AutoConnectElementVT ( ) ) :
_title ( title ) , _menu ( menu ) , _uriStr ( String ( uri ) ) , _addonElm ( addons ) , _handler ( nullptr ) , _order ( AC_EXIT_AHEAD ) , _uploadHandler ( nullptr ) { _uri = _uriStr . c_str ( ) ; _next . release ( ) ; _ac . release ( ) ; }
chunk ( PB_Chunk ) , _title ( title ) , _menu ( menu ) , _uriStr ( String ( uri ) ) , _addonElm ( addons ) , _handler ( nullptr ) , _order ( AC_EXIT_AHEAD ) , _uploadHandler ( nullptr ) { _uri = _uriStr . c_str ( ) ; _next . release ( ) ; _ac . release ( ) ; }
~ AutoConnectAux ( ) ;
AutoConnectElement & operator [ ] ( const String & name ) { return * getElement ( name ) ; }
void add ( AutoConnectElement & addon ) ; /**< Add an element to the auxiliary page */
@ -84,6 +84,8 @@ class AutoConnectAux : public PageBuilder {
size_t saveElement ( Stream & out , std : : vector < String > const & names = { } ) ; /**< Write elements of AutoConnectAux to the stream */
# endif // !AUTOCONNECT_USE_JSON
TransferEncoding_t chunk ; /**< Chunked transfer specified */
protected :
void upload ( const String & requestUri , const HTTPUpload & upload ) ; /**< Uploader wrapper */
void _concat ( AutoConnectAux & aux ) ; /**< Make up chain of AutoConnectAux */