Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

4
LINES

< > BotCompany Repo | #1030820 // redirectToHTTPS

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2809L/17K).

1  
sO redirectToHTTPS(IWebRequest req) null {
2  
  if (!req.isHttps())
3  
    ret subBot_serveRedirect("https://" + req.domain() + req.uri() + htmlQuery(req.params()));
4  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1030820
Snippet name: redirectToHTTPS
Eternal ID of this version: #1030820/4
Text MD5: 864f423e6b0f642488119e779414f62c
Transpilation MD5: c5612b9c7728598122dddf88a9b976a4
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-03-30 00:11:12
Source code size: 164 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 201 / 293
Version history: 3 change(s)
Referenced in: [show references]