mirror of
https://github.com/Xevion/banner.git
synced 2025-12-10 22:06:34 -06:00
Setup dynamic session timing & regeneration/setup flows tied to DoRequest
This commit is contained in:
@@ -129,6 +129,11 @@ func DoRequest(req *http.Request) (*http.Response, error) {
|
||||
contentLengthHeader := res.Header.Get("Content-Length")
|
||||
contentLength := int64(-1)
|
||||
|
||||
// If this request was a Banner API request, reset the session timer
|
||||
if strings.HasPrefix(req.URL.Path, "StudentRegistrationSsb/ssb/classSearch/") {
|
||||
ResetSessionTimer()
|
||||
}
|
||||
|
||||
// Get the content length
|
||||
if contentLengthHeader != "" {
|
||||
contentLength, err = strconv.ParseInt(contentLengthHeader, 10, 64)
|
||||
|
||||
Reference in New Issue
Block a user